<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="../../../houtai/include/peizhi.jsp"%>
    <%
    String pageurl = request.getServletPath(); 
    String pageurl1 = request.getParameter("type"); 
    String ss = request.getParameter("ss"); 
    request.setAttribute("ss", ss);
    request.setAttribute("pageurl", pageurl);
    request.setAttribute("pageurl1", pageurl1);	
    %>
<div class="home-head">
	<div class="w1200">
		<div style="float: right;padding-top: 1rem;"><a href="/index?e=n">汉语</a>|<a href="/index?e=e">ENGLISH</a></div>
		<div class="home-logo">
			<a href="/index?e=e"><img src="${ctx}/upload/img/logo.png" height="99" width="190"/></a>
		</div>
		<div class="home-menu">
			<ul>
				<li <c:if test="${fn:includedIn(pageurl,'index.jsp')}">class="active"</c:if>>
					<a id="homePage">首页</a>
				</li>
				<li <c:if test="${(fn:includedIn(pageurl,'list.jsp') and pageurl1=='0') or ss==0}">class="active"</c:if>>
					<a id="industry" >按行业</a>
				</li>
				<li <c:if test="${(fn:includedIn(pageurl,'list.jsp') and pageurl1=='1') or ss==1}">class="active"</c:if>>
					<a id="region" >按地区</a>
				</li>
				<li <c:if test="${(fn:includedIn(pageurl,'list.jsp') and pageurl1=='2') or ss==2}">class="active"</c:if>>
					<a id="andate" >按时间</a>
				</li>
				<li <c:if test="${(fn:includedIn(pageurl,'list.jsp') and pageurl1=='3') or ss==3}">class="active"</c:if>>
					<a id="ankeyword" >按关键字</a>
				</li>
			</ul>
		</div>
	</div>
</div>
<script type="text/javascript">
	$.ajax({
		url:"${cxt}/title/getList",
		type:"post",
		data:"",
		success:function(data){
			if(data!=null){
				for (var int = 0; int < data.length; int++) {
					if(data[int].eName=='home page'){
						$("#homePage").attr("href",data[int].site+"index?e=e").text(data[int].eName);
					}
					if(data[int].eName=='industry'){
						$("#industry").attr("href",data[int].site+"&e=e").text(data[int].eName);
					}
					if(data[int].eName=='region'){
						$("#region").attr("href",data[int].site+"&e=e").text(data[int].eName);
					}
					if(data[int].eName=='date'){
						$("#andate").attr("href",data[int].site+"&e=e").text(data[int].eName);
					}
					if(data[int].eName=='keyword'){
						$("#ankeyword").attr("href",data[int].site+"&e=e").text(data[int].eName);
					}
				}
			}
		}
	});

</script>
